package com.ossjk.qlh.minapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ossjk.core.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *
 * 菜品
 * @author liuxi
 * @since 2020-08-12
 */
@ApiModel(value = "菜品")
public class Dishes extends BaseEntity<Dishes> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键", required = true)
	@TableId("id")
	private String id;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	@TableField("name")
	private String name;
	/**
	 * 标题
	 */
	@ApiModelProperty(value = "标题")
	@TableField("title")
	private String title;
	/**
	 * 图片
	 */
	@ApiModelProperty(value = "图片", required = true)
	@TableId("pic")
	private String pic;
	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
	@TableField("description")
	private String description;
	/**
	 * 类型 1-主菜、2--副菜、3-青菜、4-主食、5-其他
	 */
	@ApiModelProperty(value = "类型 1-主菜、2--副菜、3-青菜、4-主食、5-其他")
	@TableField("type")
	private Integer type;
	/**
	 * 是否辣 1-是、2-否
	 */
	@ApiModelProperty(value = "是否辣 1-是、2-否")
	@TableField("isspicy")
	private Integer isspicy;
	/**
	 * 限购数量
	 */
	@ApiModelProperty(value = "限购数量")
	@TableField("limnum")
	private BigDecimal limnum;
	/**
	 * 好评率
	 */
	@ApiModelProperty(value = "好评率")
	@TableField("flike")
	private BigDecimal flike;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;
	/**
	 * 状态：1-在用、2-停用
	 */
	@ApiModelProperty(value = "状态：1-在用、2-停用")
	@TableField("state")
	private BigDecimal state;

	public String  getId() {
		return id;
	}
	public void  setId(String id) {
		this.id = id;
	}
	public String  getName() {
		return name;
	}
	public void  setName(String name) {
		this.name = name;
	}
	public String  getTitle() {
		return title;
	}
	public void  setTitle(String title) {
		this.title = title;
	}
	public String  getPic() {
		return pic;
	}
	public void  setPic(String pic) {
		this.pic = pic;
	}
	public String  getDescription() {
		return description;
	}
	public void  setDescription(String description) {
		this.description = description;
	}
	public Integer  getType() {
		return type;
	}
	public void  setType(Integer type) {
		this.type = type;
	}
	public Integer  getIsspicy() {
		return isspicy;
	}
	public void  setIsspicy(Integer isspicy) {
		this.isspicy = isspicy;
	}
	public BigDecimal  getLimnum() {
		return limnum;
	}
	public void  setLimnum(BigDecimal limnum) {
		this.limnum = limnum;
	}
	public BigDecimal  getFlike() {
		return flike;
	}
	public void  setFlike(BigDecimal flike) {
		this.flike = flike;
	}
	public String  getRemark() {
		return remark;
	}
	public void  setRemark(String remark) {
		this.remark = remark;
	}
	public BigDecimal  getState() {
		return state;
	}
	public void  setState(BigDecimal state) {
		this.state = state;
	}


	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Dishes ["
	+"id=" + id +","
	+"name=" + name +","
	+"title=" + title +","
	+"pic=" + pic +","
	+"description=" + description +","
	+"type=" + type +","
	+"isspicy=" + isspicy +","
	+"limnum=" + limnum +","
	+"flike=" + flike +","
	+"remark=" + remark +","
	+"state=" + state
	+ "]";
	}


}
